static-lib = libmymath.a
#要加前后缀

$(static-lib):Add.o Div.o Mul.o Sub.o
	ar -rc $@ $^
#打包

%.o:%.c
	gcc -c $<  

.PHONY:output
output:
	mkdir -p mymath_lib/include
	mkdir -p mymath_lib/lib 
	cp -f *.h mymath_lib/include
	cp -f *.a mymath_lib/lib 


.PHONY:clean
clean:
	rm -f *.o *.a mymath_lib
